package com.lp.chapter001.excel.easypoi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * easypoi导出实体类
 * @author LP to 2024/02/27
 */
@Data
public class EasypoiExcel  {
    /** 学生名称  */
    @Excel(name = "学生名称", width = 30)
    private String name;

    /** 学号  */
    @Excel(name = "学号", width = 30)
    private String studentNum;

    /** 学生性别  */
    @Excel(name = "学生性别", width = 30, replace = {"男_1", "女_2"}, addressList = true)
    private String sex;

    /** 学生年龄  */
    @Excel(name = "学生年龄", width = 10)
    private Integer age;

    /** 出生日期  */
    @Excel(name = "出生日期", width = 30, format = "yyyy-MM-dd")
    private Date birthday;
}
